<template>
    <!-- 提核原因 -->
    <div class="complaint">
        <el-row>
            <el-col :span="24" class="base-mian-cell" v-if="coreReasonFlag">
                <div class="base-mian-cell-title clearfix">
                    <div class="left fl">
                        <span class="line">|</span>
                        <span class="tips">提核原因</span>
                    </div>
                    <div class="right fr" @click="changeView">
                        <i class="el-icon-circle-close"></i>
                    </div>
                </div>
                <div class="base-mian-cell-main" v-if="archtype=='4'">
                    <el-table
                            :data="reasons"
                            style="width: 100%">
                        <el-table-column prop="chdrnum" label="保单代码" min-min-width="120" show-overflow-tooltip>
                        </el-table-column>
                        <el-table-column prop="cownnum" label="客户代码"  min-width="120" show-overflow-tooltip>
                        </el-table-column>
                        <el-table-column prop="effdate01" label="生效日期" min-width="120" show-overflow-tooltip>
                        </el-table-column>
                        <el-table-column prop="effdate02" label="ReteDate" min-width="120" show-overflow-tooltip>
                        </el-table-column>
                        <el-table-column prop="bmntdesc" label="提核原因" min-width="120" show-overflow-tooltip>
                        </el-table-column>
                    </el-table>
                </div>
                <div class="base-mian-cell-main" v-else>
                    <el-table
                            :data="reasons"
                            style="width: 100%">
                        <el-table-column prop="clmnum" label="理赔号" min-width="120" show-overflow-tooltip>
                        </el-table-column>
                        <el-table-column prop="chksno" label="二核号"  min-width="120" show-overflow-tooltip>
                        </el-table-column>
                        <el-table-column prop="chdrnum" label="保单号" min-width="120" show-overflow-tooltip>
                        </el-table-column>
                        <el-table-column prop="chkrsn" label="提核原因" min-width="120" show-overflow-tooltip>
                        </el-table-column>
                    </el-table>
                </div>
            </el-col>
        </el-row>



    </div>
</template>
<script>
  export default {
    data() {
      return {
        complainData: [],
        opinionDialogVisible2: false,
        opinionData1: []

      }
    },
    props: {
      coreReasonFlag: {
        type: Boolean,
        default: false
      },
      archtype: {
        type: String,
        default: ""
      },
      reasons: {
        type: Array,
        default() {
          return [];
        }
      }
    },
    methods: {
      // 改变试图
      changeView() {
        this.$emit('subReasonFlag', false);
      },
    }
  }
</script>
<style lang="less" scoped>

</style>